package com.swusoft.schoolproject.service;

import cn.dev33.satoken.util.SaResult;
import com.swusoft.schoolproject.entitys.Book;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface BookService {
    SaResult savaBook(MultipartFile[] files, Book book);
    SaResult selectBook(Long id);

    SaResult savaBookContent(MultipartFile file, Long id);

    SaResult updateBook(MultipartFile[] files, Book book);

    SaResult updateBookContent(MultipartFile[] file, Long bookId);

    SaResult deleteBook(Long id);

    SaResult fileByBookId(Long id);

    List<String> getImagesNames();

    SaResult selectPage(Integer current, Integer size, Map<String, Object> searchMap);

    SaResult selectList();
}

